with open('./testfile/test.png', mode='r', encoding='utf-8') as aaa:
    print(aaa.readlines())
    # 这种形式就不需要每次都关闭文件资源

